package com.sailfish.template.infra.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author XIAXINYU3
 * @date 2021.11.1
 */
@Configuration
public class MybatisPageConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        //设置单页最大查询1000条
        paginationInterceptor.setLimit(1000);


        return paginationInterceptor;
    }
}
